import { ref } from 'vue'
import { defineStore } from 'pinia'

export const useCatchTimeStore = defineStore('catchTime', () => {
    const time = ref('')
    const nowDate = ref('')
    const nowWeek = ref('')

    function setnowDate(newVal: string) {
        nowDate.value = newVal
    }

    function setnowWeek(newVal: string) {
        nowWeek.value = newVal
    }

    function runTime(newVal: string) {
        time.value = newVal
    }

    return { time, nowDate, nowWeek, runTime, setnowDate,setnowWeek}
})
